package com.zscat.mallplus.bill.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 售后-换货单表
 * </p>
 * 退货
 * @author zscat
 * @since 2019-09-16
 */
@Data
@TableName("bill_exchange")
public class BillExchange implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value="exchange_id",type = IdType.AUTO)
    private Long exchangeId;

    /**
     * 订单ID 关联order.id
     */
    @TableField("order_id")
    private String orderId;

    /**
     * 售后单id
     */
    @TableField("aftersales_id")
    private String aftersalesId;

    /**
     * 用户ID 关联user.id
     */
    @TableField("user_id")
    private Integer userId;

    @TableField("seller_confirm_time")
    private Date sellerConfirmTime;

    @TableField("buy_confirm_time")
    private Date buyConfirmTime;

    @TableField("buy_memo")
    private String buyMemo;

    @TableField("seller_memo")
    private String sellerMemo;

    @TableField("store_id")
    private String storeId;

    @TableField("company_address_id")
    private Long companyAddressId;

    @TableField("seller_ship_area_id")
    private Long sellerShipAreaId;

    @TableField("seller_ship_address")
    private String sellerShipAddress;

    @TableField("seller_ship_name")
    private String sellerShipName;

    @TableField("seller_ship_mobile")
    private String sellerShipMobile;

    @TableField("buy_ship_area_id")
    private Long buyShipAreaId;

    @TableField("buy_ship_address")
    private String buyShipAddress;

    @TableField("buy_ship_name")
    private String buyShipName;

    @TableField("buy_ship_mobile")
    private String buyShipMobile;

    @TableField("buy_logi_code")
    private String buyLogiCode;

    @TableField("buy_logi_no")
    private String buyLogiNo;

    @TableField("buy_logi_name")
    private String buyLogiName;

    @TableField("buy_logi_information")
    private String buyLogiInformation;

    @TableField("buy_logi_status")
    private String buyLogiStatus;

    @TableField("seller_logi_code")
    private String sellerLogiCode;

    @TableField("seller_logi_no")
    private String sellerLogiNo;

    @TableField("seller_logi_name")
    private String sellerLogiName;

    @TableField("seller_logi_information")
    private String sellerLogiInformation;

    @TableField("seller_logi_status")
    private String sellerLogiStatus;

    /**
     * 状态 1=审核通过待发货 2=已发退货 3=已收退货
     * 状态：1 待换货  2买家已发货  3卖家已收货  4 卖家处理换货中   5卖家已发货中  6买家已收货 7换货成功
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date ctime;

    /**
     * 更新时间
     */
    private Date utime;

}
